Fixes "object arrays are not supported".
Author: Kevin "bashtage" Sheppard
Origin: upstream https://github.com/statsmodels/statsmodels/pull/4911/commits/
18dcceefbfed61b0d11ae5884a9f4cea82c2edb5
Forwarded: not-needed
Gbp-Pq: Name unconstrain_stationary_multivariate.patch
# Then stack the VAR(p) into a VAR(1) in companion matrix form:
# z_{t+1} = F z_t + v_t
companion = companion_matrix(
- [1] + [-coefficients[i] for i in range(order)]
+ [1] + [-np.squeeze(coefficients[i]) for i in range(order)]
).T
# Compute the error variance matrix for the stacked form: E v_t v_t'